<?php
header('Content-Type:text/html;charset=utf-8');
header("Content-type:application/vnd.ms-excel ");
header("content-Disposition:filename=newgraphdownloaded.xls");
session_start();
//print_r($_SESSION['download']);
$explode=$_SESSION['download'];

?>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="details">
	<thead>
          <tr>
                <th>#</th>
                <th>转发者</th>
                <th>带来转发量</th>
                <th>粉丝总量</th>
                <th>转发者的粉丝</th>
                <th>带来转发用户的粉丝</th>
          </tr>
    </thead>
    <tbody>
          <?php
            $i=1;
            foreach($explode as $e){
              ?>
          <tr>
                <td><?php echo $i;?></td>
                <td><?php echo $e['name'];?></td>
                <td><?php echo $e['count'];?></td>
                <td><?php echo ($e['followers']+$e['behind_followers']);?></td>
                <td><?php echo $e['followers'];?></td>
                <td><?php echo $e['behind_followers'];?></td>
          </tr>
          <?php
               $i++; }
          ?>
    </tbody>
</table>